import React from 'react';
import { useLocation } from 'react-router-dom';

export default function Detail() {
  const { state: { id, title, content } } = useLocation();

  return (
    <ul>
      <li>ID: {id}</li>
      <li>Title: {title}</li>
      <li>Content: {content}</li>
    </ul>
  )
}
